package com.ruoyi.topic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投票题目对象 house_vote_topic
 * 
 * @author ruoyi
 * @date 2023-10-08
 */
public class HouseVoteTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目id */
    private Long topicId;

    private Long voteId;

    /** 题目 */
    @Excel(name = "项目")
    private String voteName;

    /** 题目 */
    @Excel(name = "题目")
    private String voteTopic;

    /** 分数 */
    @Excel(name = "分数")
    private Long voteScore;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }
    public void setVoteId(Long voteId) 
    {
        this.voteId = voteId;
    }

    public Long getVoteId() 
    {
        return voteId;
    }
    public void setVoteTopic(String voteTopic) 
    {
        this.voteTopic = voteTopic;
    }

    public String getVoteTopic() 
    {
        return voteTopic;
    }
    public void setVoteScore(Long voteScore) 
    {
        this.voteScore = voteScore;
    }

    public Long getVoteScore() 
    {
        return voteScore;
    }
    public void setCreater(String creater) 
    {
        this.creater = creater;
    }

    public String getCreater() 
    {
        return creater;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    public String getVoteName() {
        return voteName;
    }

    public void setVoteName(String voteName) {
        this.voteName = voteName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("topicId", getTopicId())
            .append("voteId", getVoteId())
            .append("voteTopic", getVoteTopic())
            .append("voteScore", getVoteScore())
            .append("creater", getCreater())
            .append("createDate", getCreateDate())
            .toString();
    }
}
